# encoding:utf-8

# iframe操作
from utils.webdriver_factory import WebDriverFactory

driver = WebDriverFactory.get_instance()
"""
切换到iframe内
driver.switch_to.frame('frame_name')
driver.switch_to.frame(1)
driver.switch_to.frame(driver.find_elements(By.TAG_NAME, "iframe")[0])
"""
# driver.switch_to.frame()

# 切换到默认窗口
driver.switch_to.default_content()